package calc;
import javax.swing.*;
public class tambah{
	public void proses(){
		double hasil;
		System.out.println("Penambahan");
double bilangan1=Double.valueOf(JOptionPane.showInputDialog(null, "Masukan Bilangan ke-1","Penambahan", 1));
double bilangan2=Double.valueOf(JOptionPane.showInputDialog(null, "Masukan Bilangan ke-2","Penambahan", 1));
		hasil =bilangan1+bilangan2;
		System.out.println("=> Hasil : "+bilangan1+" + "+bilangan2+" = "+hasil);
	}
}